import psutil
disk=psutil.disk_partitions()
print(disk)


monitor_disk=["/","/run"]
info=psutil.disk_usage("/")
print(info)

# 访问不存在的
try:
    info=psutil.disk_usage("/123")
    print(info)
except Exception:
    print("error not this disk")